Skip to content

fix: support nodeid for new files#6326

Merged
vitormattos merged 3 commits intomainfrom
fix/support-nodeid-for-new-files
Jan 5, 2026
Merged

fix: support nodeid for new files#6326
vitormattos merged 3 commits intomainfrom
fix/support-nodeid-for-new-files

Conversation

@vitormattos
Copy link
Copy Markdown
Member

No description provided.

Support validating files by Nextcloud nodeId in addition to
LibreSign fileId. This enables creating signature requests
for files that haven't been registered in LibreSign yet.

The validateFile method now accepts 'nodeId' parameter and
validates it similarly to 'fileId', ensuring the file exists
and has the correct MIME type.

Signed-off-by: Vitor Mattos <[email protected]>
Enable FileService to retrieve nodes using Nextcloud nodeId
in addition to LibreSign fileId. This allows the service to
handle both registered LibreSign files and new Nextcloud files
in the same workflow.

The method now checks for 'nodeId' after 'fileId' and 'path',
maintaining backward compatibility while adding new functionality.

Signed-off-by: Vitor Mattos <[email protected]>
@vitormattos vitormattos added this to the Next Major (33) milestone Jan 5, 2026
@vitormattos vitormattos self-assigned this Jan 5, 2026
@github-project-automation github-project-automation Bot moved this to 0. Needs triage in Roadmap Jan 5, 2026
@vitormattos vitormattos force-pushed the fix/support-nodeid-for-new-files branch from 21de33c to 4435655 Compare January 5, 2026 21:23
Add comprehensive test coverage for:
- ValidateHelper nodeId validation (success, invalid nodeId, missing user)
- FileService nodeId-based node retrieval
- Precedence of fileId over nodeId when both are provided

These tests ensure the new nodeId functionality works correctly
while maintaining backward compatibility with existing fileId behavior.

Signed-off-by: Vitor Mattos <[email protected]>
@vitormattos vitormattos force-pushed the fix/support-nodeid-for-new-files branch from 4435655 to 13c4a3b Compare January 5, 2026 21:23
@vitormattos
Copy link
Copy Markdown
Member Author

/backport to stable32

@vitormattos
Copy link
Copy Markdown
Member Author

/backport to stable31

@vitormattos vitormattos merged commit 1ed7129 into main Jan 5, 2026
67 checks passed
@vitormattos vitormattos deleted the fix/support-nodeid-for-new-files branch January 5, 2026 22:35
@github-project-automation github-project-automation Bot moved this from 0. Needs triage to 4. to release in Roadmap Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant